﻿using System;
using System.Web.UI;
using DataObject.DataAccess;

public partial class Pages_Reservations_Ascx_ChangeReservationPopup : UserControl
{
    public Guid ReservationID
    {
        get
        {
            if (String.IsNullOrEmpty(Request["ReservationID"]))
                return Guid.Empty;
            return new Guid(Request["ReservationID"]);
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ddlBoat.DataSource = BoatDAO.CreateInstant().GetAllBoats();
            ddlBoat.DataTextField = "BoatName";
            ddlBoat.DataValueField = "BoatID";
            ddlBoat.DataBind();
        }
    }
}